package com.oxy.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.oxy.util.SpringUtil;

public class CompInitListener implements ServletContextListener {
	public void contextDestroyed(ServletContextEvent arg) {
	}

	public void contextInitialized(ServletContextEvent arg) {
		// 初始化web.xml中自定义的<context-param>参数并将其放入System中
		ServletContext sc = arg.getServletContext();
		SpringUtil.init(sc);
	}
}
